A JavaScript statement like this: document.write("<h1>" + name + "</h1>") can write a variable text into the display of an HTML page, just like the static HTML text: <h1>Bill Gates</h1> does

#Title: What can a JavaScript Do?
#Element: 30: JavaScript can put dynamic text into an HTML page ...
#Article: 5: Introduction to JavaScript JavaScript is a ...